Ajax.InPlaceSelectEditor = Class.create();  
Object.extend(Object.extend(Ajax.InPlaceSelectEditor.prototype, Ajax.InPlaceEditor.prototype),   
//继承了InPlaceEditor重写了createEditField方法  
{  
    createEditField: function(){  
        var text;  
        if (this.options.loadTextURL) {  
            text = this.options.loadingText;  
        }  
        else {  
            text = this.getText();  
        }  
        this.options.textarea = false;  
      
        var selectField = document.createElement("select");  
        selectField.name = "value";  
        //innerhtml在ie下可能有问题  
        //改动部分  
          
                if (this.options.selectOptionsHTML)  
        {  
            OptionsHTML=this.options.selectOptionsHTML.split(",")  
            for(var i=0; i < OptionsHTML.length; i++) {          
            selectField.options[i] = new Option(OptionsHTML[i],OptionsHTML[i]);  
            }  
              
        }  
        else  
        {  
            selectField.options[0] = new Option('test','test');  
              
              
              
        }  
          
        //改动结束  
  
          
          
        $A(selectField.options).each(function(opt, index){  
            if (text == opt.value) {  
                selectField.selectedIndex = index;  
            }  
        });  
        selectField.style.backgroundColor = this.options.highlightcolor;  
          
        this.editField = selectField;  
        if (this.options.loadTextURL) {  
            this.loadExternalText();  
              
        }  
    //关键是在form里面的内容   
        this.form.appendChild(this.editField);  
          
    }  
});